import http from "@/utils/http";

const prefix = "/user";

export function register(data){
    return http({
        url:  prefix + "/register",
        data,
        method: "post"
    })
}

export function login(data){
    return http({
        url: prefix + "/login",
        data,
        method: "post"
    })
}

export function logout(){
    return http({
        url: prefix + "/logout",
        method: "post"
    })
}



export function list(params){
    return http({
        url: prefix + "/list",
        params,
        method: "get"
    })
}

